package ZY10_22.Teacher;

public class Teacher {
    private String name;
    private String sex;
    private int age;
    private int schoolage;

    Teacher(){

    }
    Teacher(String name,int age,int schoolage,String sex){

    }
    public Teacher(String name, String sex, int age, int schoolage) {
        this.name = name;
        this.sex = sex;
        this.age = age;
        this.schoolage = schoolage;
    }

    public void show(){
        System.out.println("姓名："+this.name+" 年龄："+this.age+" 教龄："+this.schoolage+" 性别："+this.sex);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getSchoolage() {
        return schoolage;
    }

    public void setSchoolage(int schoolage) {
        this.schoolage = schoolage;
    }
}
